package com.moonstar;

import javax.swing.*;

public class myThread6 extends Thread{
    private JTextArea jt;
    private int index=0;

    myThread6(JTextArea jt){
        this.jt=jt;
    }

    @Override
    public void run() {
        while (true){
            synchronized (work2.Lock4) {
                jt.setText(String.valueOf(work2.index4));
                work2.index4--;
            }
            try {
                sleep(32);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
